x86/time: Remove redundant RTC REG_B read
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Feb 2014 16:21:22 +0000 (17:21 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Feb 2014 16:21:22 +0000 (17:21 +0100)
commit565d6a734a440219f371c890af1b624081b6f54f
tree77d8ad05666b46b10d48eedab0da6e87062ec1c5
parent4c2502450ef1cc6fa1fd6daab8dbed8af1b88a29
x86/time: Remove redundant RTC REG_B read

RTC_ALWAYS_BCD is always defined by default, meaning that we will
unconditionally enter the if statement.  Reordering the condition allows
short-circult evaluation to remove a redundant CMOS read.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/time.c